package topday1_9.demo2;

/**
 * @Auther:小陈的Java
 * 子类中所有构造器默认都会访问父类中空参数构造器
 */
public class Father {
    public Father(){
        System.out.println("父类构造器");
    }
}
class Son extends  Father{
    public Son(){
        System.out.println("子类构造器");
    }
    public static void main(String[] args) {
        Son son = new Son();
    }
}
